import React from 'react'
const Menu = () => {
    const location = React.Router.useLocation()
    const navigate = React.Router.useNavigate()
    const { pathname } = location
    const SwtichTab = async (url: string) => navigate(url)

    return (
        <>
            <React.UI.TabBar style={{ width: '100%' }} activeKey={pathname} onChange={SwtichTab}>
                <React.UI.TabBar.Item key={"/"} icon={<React.ICON.AppOutline />} title={"首页"} />
                <React.UI.TabBar.Item key={"/business/index"} icon={<React.ICON.UserOutline />} title={"我的"} />
            </React.UI.TabBar>
        </>
    )
}

export default Menu;

